package com.example.jwtauthdemo.exception;

import com.example.jwtauthdemo.util.ResultCode;

public class ServiceException extends RuntimeException {
    private int code;

    public ServiceException(ResultCode resultCode, String message) {
        super(message);
        this.code = resultCode.getCode();
    }

    public int getCode() {
        return code;
    }
}